

package top.continew.admin.question.model.question;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.continew.starter.extension.crud.model.entity.BaseIdDO;

import java.util.Date;

@Data
@TableName("user_do_question")
public class UserDoQuestion extends BaseIdDO {

    /**
     * 做题记录ID
     */
    private Long userDoQuestionSetId;

    /**
     * 题集ID
     */
    private Long questionSetId;

    private Long questionType;

    /**
     * 题目ID
     */
    private Long questionId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户答案
     */
    private String userAnswer;

    /**
     * 用户答案类型（1文本，2图片）
     */
    private String userAnswerType;

    /**
     * 得分
     */
    private Double score;

    /**
     * 评语
     */
    private String comments;

    /**
     * 做题时长
     */
    private Long doTime;

    /**
     * 状态（1:未作，2：未批，3正确，4错误）
     */
    private Integer problemState;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 操作时间
     */
    private Date operateTime;

    @Override
    public String toString() {
        return "UserDoQuestion{" + "id=" + super.getId() + ", userDoQuestionSetId=" + userDoQuestionSetId + ", questionSetId=" + questionSetId + ", questionId=" + questionId + ", userId=" + userId + ", userAnswer='" + userAnswer + '\'' + ", userAnswerType='" + userAnswerType + '\'' + ", score=" + score + ", comments='" + comments + '\'' + ", doTime=" + doTime + ", problemState='" + problemState + '\'' + ", createTime=" + createTime + ", operateTime=" + operateTime + '}';
    }
}
